package ai.people.netmon.framework.domain.gang.construction.entity;

import ai.people.netmon.framework.domain.gang.construction.request.LabelLibSaveOrUpdateRequest;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhenglin
 * @since 2022-07-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName(schema = "webservice")
@NoArgsConstructor
public class LabelLib implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    private Long id;

    /**
     * 父ID 0为根节点
     */
    private Long parentId;

    /**
     * 标签名
     */
    private String labelName;

    /**
     * 训练标签 1开启 0关闭
     */
    private Integer trainFlag;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;


    public LabelLib(LabelLibSaveOrUpdateRequest request) {
        this.parentId = request.getParentId();
        this.labelName = request.getLabelName();
    }
}
